
package com.huaweicloud.haydn.delivercore.agent.dto.haydn;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @since 2022-12-14
 */
@Data
public class FieldDto {

    @JsonProperty("datalink_name")
    private String datalinkName;

    @JsonProperty("database_name")
    private String databaseName;

    @JsonProperty("schema_name")
    private String schemaName;

    @JsonProperty("deliver_reqmt_table_name")
    private String deliverReqmtTableName;

    @JsonProperty("deliver_reqmt_table_uuid")
    @ApiModelProperty(value = "表uuid")
    private String deliverReqmtTableUuid;

    @JsonProperty("field_name_zh")
    @ApiModelProperty(value = "字段中文名")
    private String fieldNameZh;

    @JsonProperty("field_name_en")
    @ApiModelProperty(value = "字段英文名")
    private String fieldNameEn;

    @JsonProperty("field_type")
    @ApiModelProperty(value = "字段类型")
    private String fieldType;

    @JsonProperty("field_length")
    @ApiModelProperty(value = "字段长度")
    private String fieldLength;

    @JsonProperty("field_descrpiton")
    @ApiModelProperty(value = "字段描述")
    private String fieldDescription;

    @JsonProperty("is_primary_key")
    @ApiModelProperty(value = "是否主键")
    private String isPrimaryKey;

    @JsonProperty("is_nullable")
    @ApiModelProperty(value = "是否可空")
    private String isNullable;

    private String uuid;

    @JsonProperty("created_time")
    private Date createdTime;

    @JsonProperty("last_update_time")
    private Date lastUpdateTime;

    @JsonProperty("data_gen_time")
    private Date dataGenTime;

    @JsonProperty("empty_rate")
    private String emptyRate;

    @JsonProperty("data_precision")
    private String dataPrecision;

    @JsonProperty("data_scale")
    private String dataScale;
}
